package com.shqcjd.generalplatformprojectclient.ui.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.shqcjd.generalplatformprojectclient.R;
import com.shqcjd.generalplatformprojectclient.model.pojo.ExpertsBean;

import java.util.List;

/**
 * 邀请专家
 * Created by sy on 2018/12/19.
 */

public class ExpertsAdapter extends BaseQuickAdapter<ExpertsBean,BaseViewHolder>{
    public ExpertsAdapter(@Nullable List<ExpertsBean> data) {
        super(R.layout.item_experts_layout, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ExpertsBean item) {
        helper.setImageResource(R.id.iv_select, item.isSelect == true ? R.mipmap.ic_select1 : R.mipmap.ic_no_select)
                .setText(R.id.tv_name, item.name)
                .setText(R.id.tv_number, item.number);


    }
}
